//
//  UIApplication+Info.h
//  iCJTools
//
//  Created by YCJ on 2020/7/24.
//  Copyright © 2020 YCJ. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, UIApplicationStatus) {
    UIApplicationStatusForeground,//前台
    UIApplicationStatusBackground //后台
};

@interface UIApplication (Info)

+ (NSString *)appName;
+ (NSString *)appBundleId;
+ (NSString *)appVersion;

+ (UIApplicationStatus)appStatus;
+ (NSString *)appStatusString;

+ (NSString *)deviceToken;//移动设备唯一标识
+ (void)deleteDeviceToken;//删除移动设备唯一表识

+ (NSString *)deviceModelName;//设备型号
+ (NSString *)deviceOSVersion;//设备系统版本

+ (NSString *)ip;
+ (NSString *)port;//用户端口号
+ (NSString *)mac;//用户MAC地址
+ (NSString *)imei;//用户端IMEI

+ (BOOL)isProxyOpen;//是否网络代理打开
+ (BOOL)isJailBroken;//是否越狱

@end

NS_ASSUME_NONNULL_END



